package com.ruoyi.pay.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 支付配置类
 */
@Slf4j
@Configuration
@ComponentScan("com.ruoyi.pay")
@ConditionalOnProperty(value = "pay.enabled", havingValue = "true")
@EnableConfigurationProperties(value = {PayProperties.class})
public class LxkPayAutoConfiguration implements CommandLineRunner {


    @Override
    public void run(String... args) throws Exception {
        log.info("支付配置启动");
    }
}
